package com.pet.pet05order.feign;

import com.pet.pojo.Item;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(name = "pet04-itemservice",contextId = "remoteItemService")
public interface RemoteItemService {
    @GetMapping("/item/getItemById/{itemId}")
    Item getItemById(@PathVariable("itemId") Integer itemId);
    @PostMapping("/item/storeDesc")
    void storeDesc(@RequestBody Item item);
}
